
import api from '../../http/api.js'
export default {
namespaced: true,
  state: {
    menuData:{
        
    }
   
  },
  mutations: {
    savemenuData(state,newData){
    state.menuData=newData
    },
    

  },
  actions: {
    async getAllmenu(context){
        const data =await api.menu.getAllmenu()
        console.log(data);
        if(data.data.code){
          context.commit('savemenuData',data.data.object)
        
        }
      }

  }
}
